home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
lang
/
SmallEiffel.lha
/
SmallEiffel
/
lib_se
/
precursor_name.e
< prev
next >
Wrap
Text File
|
1998-12-22
|
2KB
|
91 lines
-- This file is part of SmallEiffel The GNU Eiffel Compiler.
-- Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
-- Dominique COLNET and Suzanne COLLIN - colnet@loria.fr
-- http://www.loria.fr/SmallEiffel
-- SmallEiffel is free software; you can redistribute it and/or modify it
-- under the terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 2, or (at your option) any later
-- version. SmallEiffel is distributed in the hope that it will be useful,but
-- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-- for more details. You should have received a copy of the GNU General
-- Public License along with SmallEiffel; see the file COPYING. If not,
-- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- Boston, MA 02111-1307, USA.
--
class PRECURSOR_NAME
--
-- The name of a Precursor RUN_FEATURE (RUN_FEATURE_10 | RUN_FEATURE_11).
--
inherit FEATURE_NAME;
creation {E_PRECURSOR} refer_to
feature {NONE}
enclosing: FEATURE_NAME;
-- Name of the enclosing RUN_FEATURE which contains the
-- Precursor call.
to_key: STRING;
feature {NONE}
refer_to(id: INTEGER; e: like enclosing) is
-- Where `id' is the base class id of the Precursor routine.
require
e /= Void
do
enclosing := e;
to_key := unique_string.for_precursor(id,e.to_key);
ensure
enclosing = e;
to_string = unique_string.item(to_string)
end;
feature
to_string: STRING is
do
Result := enclosing.to_string;
end;
start_position: POSITION is
do
Result := enclosing.start_position;
end;
is_frozen: BOOLEAN is
do
Result := enclosing.is_frozen;
end;
declaration_in(str: STRING) is
do
end;
pretty_print is
do
fmt.put_string(us_precursor);
end;
declaration_pretty_print is
do
end;
short is
do
end;
feature {RUN_FEATURE,FEATURE_NAME}
put_cpp_tag is
do
cpp.put_string(us_precursor);
cpp.put_character(' ');
end;
end